﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Guline.HosterModels.Object
{
    public class Account
    {
        [Key]
        public int ID { get; set; }
        public string UserName { get; set; }
        public string Phone { get; set; }
        public string Email { get; set; }
        public string Address { get; set; }
        public Nullable<int> Status { get; set; }
        public Nullable<int> Balance { get; set; }
        public Nullable<int> AmountUsed { get; set; }
        public Nullable<int> TotalAmount { get; set; }
        public Nullable<DateTime> CreatDate { get; set; }
        public string Notes { get; set; }
        public Nullable<int> GroupID { get; set; }
        [ForeignKey("GroupID")]
        public virtual Group Group { get; set; }
        [InverseProperty("Account")]
        public virtual ICollection<Organize> Organizes { get; set; }
    }
}
